<%@ taglib prefix="sf" uri="http://www.springframework.org/tags/form"%>
<h2>Return the Book</h2>
<div>
	<sf:form method="POST" modelAttribute="incomeRecord">
		<fieldset>
			<table>
				<tr>
					<th>Order id</th>
					<td><sf:input path="outcome.id" id="order_id" /></td>
				</tr>
				<tr>
					<td></td>
					<td><sf:errors path="outcome" cssClass="error" /></td>
				</tr>
				<tr>
					<th>Real return date</th>
					<td><sf:input path="realReturnDate" id="real_return_date" readonly="true" /></td>
				</tr>
				<tr>
					<td></td>
					<td><sf:errors cssClass="error" /></td>
				</tr>
				<tr>
					<th>Damage fine</th>
					<td><sf:input path="damageFine" id="damage_fine" /></td>
				</tr>
				<tr>
					<td></td>
					<td><sf:errors path="damageFine" cssClass="error" /></td>
				</tr>
				<tr>
					<td></td>
					<td><input type="submit" value="Submit" /></td>
				</tr>
			</table>
		</fieldset>
	</sf:form>
</div>
 
